package com.zlkj.pro.modular.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zlkj.pro.modular.admin.model.vo.UserVO;
import com.zlkj.pro.modular.business.entity.CustomerEntity;
import com.zlkj.pro.modular.business.model.dto.CustomerDTO;
import com.zlkj.pro.modular.business.model.vo.CustomerVO;

import java.util.List;
import java.util.Map;

/**
 * @author liyang
 * @date 2024/4/6
 * @time 14:28
 */
public interface AppCustomerMapper extends BaseMapper<CustomerEntity> {

    List<CustomerVO> findList(CustomerDTO dto);

    List<UserVO> findSubordinateList(Long userId, String query);

    CustomerVO findDetail(CustomerDTO dto);

    List<Map<String,String>> findArea(String parentId);

    String findAddress(String addressProvince, String addressCity, String addressArea);

    List<Long> findNeedFixAddress();

    List<Map<String,String>> findAreaPath();

    List<Map<String,String>> findAreaName();

    List<CustomerEntity> findCustomerList();
}
